<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateYsBookConfigTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('book_config', function(Blueprint $table)
		{
			$table->increments('id')->comment('主键id');
			$table->string('book_num', 32)->comment('关联书籍id');
			$table->string('setting_key', 32)->comment('配置项key值');
			$table->text('setting_value')->nullable()->comment('配置项value值');
			$table->integer('last_modify_time')->nullable()->comment('最后一次编辑时间');
			$table->tinyInteger('status')->nullable()->default(1)->comment('状态 1为正常2为删除');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('book_config');
	}

}
